ReadOnceAsync(DataReferenceSource[],TimeSpan,CancellationToken) Method
Read the runtime data once asynchronously with timeout and Cancellation token.
Syntax
'Declaration Public Overloads MustOverride Function ReadOnceAsync( _ ByVal dataReferenceSources() As DataReferenceSource, _ ByVal timeout As TimeSpan, _ ByVal cancellationToken As CancellationToken _ ) As Task(Of VTQ())
'Usage Dim instance As DataSubscription Dim dataReferenceSources() As DataReferenceSource Dim timeout As TimeSpan Dim cancellationToken As CancellationToken Dim value As Task(Of VTQ()) value = instance.ReadOnceAsync(dataReferenceSources, timeout, cancellationToken)
public abstract Task<VTQ[]> ReadOnceAsync( DataReferenceSource[] dataReferenceSources, TimeSpan timeout, CancellationToken cancellationToken )
public: abstract Task<array<VTQ^>>^ ReadOnceAsync( array<DataReferenceSource^>^ dataReferenceSources, TimeSpan timeout, CancellationToken cancellationToken )
Parameters
- dataReferenceSources
- The data reference source array
- timeout
- The timeout of the read operation. When the passed in timeout is equal to or less than TimeSpan.Zero, default 30 seconds will be applied.
- cancellationToken
- The cancellation token used to cancel the read operation
Return Value
The VTQ array of the references
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also